package com.njlime.setting.entities;

import com.njlime.core.base.entities.BaseEntity;
import com.njlime.core.web.validation.RegexType;
import com.njlime.core.web.validation.annotation.Validate;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * 实体类
 *
 * @since 
 */
@Entity
@Table(name = "t_announce_category")
public class AnnounceCategory extends BaseEntity {
	@Validate(description = "名称", nullable = false)
    private String name; // 名称
    @Validate(description = "类型", nullable = false,regexType= RegexType.NUMBER)
    private Integer type; // 类型：1公告2帮助
    private Integer creator; // 创建人
    private Date create_time; // 创建时间
    private Integer is_del; // 是否删除

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getCreator() {
        return creator;
    }

    public void setCreator(Integer creator) {
        this.creator = creator;
    }

    public Date getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    public Integer getIs_del() {
        return is_del;
    }

    public void setIs_del(Integer is_del) {
        this.is_del = is_del;
    }
}